<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>下载</title>
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<load href="__CSS__/header.css" />
		<load href= "__JS__/jshelper.js" /> 
<script type="text/JavaScript">
				function workedit(id){
					window.location.href="__URL__/workedit/id/"+id;
				}
				function worksearch(id){
					window.location.href="__URL__/workdetail/id/"+id;
				}
				function workdelete(id,classid,pname,p){
					if (confirm("你确定要删除吗")==true)
						postwith('__URL__/workdelete',{id:id,classid:classid,pname:pname,p:p});
				}
				function filedownload(classid,pname){
					postwith('__URL__/filedownload',{classid:classid,pname:pname});
				}
					window.onload=show;
	</script>
	<load href="__JS__/jQuery/jquery.js" />
	<load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location=window.location.href;
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>
<body>
	 <layout name="Auth:header" />
	 <div class="nowposition">
		当前位置：
		<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
		<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
		<a href="" class="nowpositionhref" >作业管理</a>
	</div>
		<layout name="Auth:leftmenu" />
	<div id="work_Show">
					<table width="100%" border="0" align="center" cellpadding="0px" cellspacing="0px">
						<thead  style=" font-weight:bold; font-size:12px; background-color:f0f0f0;">
							<tr id="table_work_show_title" height="35px">
								<td style="width:15%">课程序号</td>
								<td style="width:15%">课程名称</td>
								<td style="width:10%">任课教师</td>
								<td style="width:20%">作业名称</td>
								<td style="width:10%">评语</td>
								<td style="width:5%">成绩</td>
								<td style="width:20%">发表时间</td>						
								<td style="width:100px">操作</td>								
							</tr>
						</thead>
						<load href"__PUBLIC__/js/list_show.js">
						<tbody id="tab">
						
							<volist name='list' id='vo' >
								<tr id="table_work_show" height="40px">
									<td style="display:none;">{$vo.id}</td>	<!--ID-->
									<td style="width:15%">{$vo.courseid}</td><!--课程序号-->
									<td style="width:15%">{$vo.cname}</td><!--课程名称-->
									<td style="width:15%">{$vo.nname}</td><!--作者-->
									<td style="width:30%"><a href="__ROOT__{$vo.path}{$vo.name}" target="_blank">{$vo.name}</a></td><!--标题-->
									<td style="width:15%">{$vo.text}</td>
									<td style="width:15%">{$vo.grade}</td>
										
									<td style="width:20%;">{$vo.time}</td><!--发表时间-->		
									<td style="width:180px;">
										<a href="#"  name='delete_work' onClick="workdelete('{$vo.id}','{$vo.classid}','{$pname}','{$p}')" style=" font-size:12px;">删除</a>
									</td>
								</tr>
							</volist>	
						</tbody>		
					</table><div class="green-black" align="right">{$page}</div>
				</div>
				
</body>
</html>